import request from "./request"

export function getTopBanner() {
    return request({
        url: "/banner"
    })
}

export function getHotRecommend(limit) {
    return request({
        url: "/personalized",
        params: {
            limit
        }
    })
}


export function getNewAlbums(limit) {
    return request({
        url: "/top/album",
        params: {
            limit
        }
    })
}

export function getTopList(idx) {
    return request({
        url: "/top/list",
        params: {
            idx
        }
    })
}

export function getTopLists(idx) {
    return request({
        url: "/top/list",
        params: {
            idx
        }
    })
}


export function getArtistList(limit, cat) {
    return request({
        url: "/artist/list",
        params: {
            cat,
            limit
        }
    })
}